home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / g_man / cat3 / OpenGL / glubegincurve.z / glubegincurve
Encoding:
Text File  |  2002-10-03  |  3.9 KB  |  67 lines

  1.  
  2.  
  3.  
  4. gggglllluuuuBBBBeeeeggggiiiinnnnCCCCuuuurrrrvvvveeee((((3333GGGG))))              OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee              gggglllluuuuBBBBeeeeggggiiiinnnnCCCCuuuurrrrvvvveeee((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      gggglllluuuuBBBBeeeeggggiiiinnnnCCCCuuuurrrrvvvveeee,,,, gggglllluuuuEEEEnnnnddddCCCCuuuurrrrvvvveeee - delimit a NURBS curve definition
  10.  
  11.  
  12. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  13.      void gggglllluuuuBBBBeeeeggggiiiinnnnCCCCuuuurrrrvvvveeee( GLUnurbs* _n_u_r_b )
  14.  
  15.      void gggglllluuuuEEEEnnnnddddCCCCuuuurrrrvvvveeee( GLUnurbs* _n_u_r_b )
  16.  
  17.  
  18. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  19.      _n_u_r_b  Specifies the NURBS object (created with gggglllluuuuNNNNeeeewwwwNNNNuuuurrrrbbbbssssRRRReeeennnnddddeeeerrrreeeerrrr).
  20.  
  21. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  22.      Use gggglllluuuuBBBBeeeeggggiiiinnnnCCCCuuuurrrrvvvveeee to mark the beginning of a NURBS curve definition.
  23.      After calling gggglllluuuuBBBBeeeeggggiiiinnnnCCCCuuuurrrrvvvveeee, make one or more calls to gggglllluuuuNNNNuuuurrrrbbbbssssCCCCuuuurrrrvvvveeee to
  24.      define the attributes of the curve.  Exactly one of the calls to
  25.      gggglllluuuuNNNNuuuurrrrbbbbssssCCCCuuuurrrrvvvveeee must have a curve type of GGGGLLLL____MMMMAAAAPPPP1111____VVVVEEEERRRRTTTTEEEEXXXX____3333 or
  26.      GGGGLLLL____MMMMAAAAPPPP1111____VVVVEEEERRRRTTTTEEEEXXXX____4444.  To mark the end of the NURBS curve definition, call
  27.      gggglllluuuuEEEEnnnnddddCCCCuuuurrrrvvvveeee.
  28.  
  29.      GL evaluators are used to render the NURBS curve as a series of line
  30.      segments.  Evaluator state is preserved during rendering with
  31.      ggggllllPPPPuuuusssshhhhAAAAttttttttrrrriiiibbbb(GGGGLLLL____EEEEVVVVAAAALLLL____BBBBIIIITTTT) and ggggllllPPPPooooppppAAAAttttttttrrrriiiibbbb(). See the ggggllllPPPPuuuusssshhhhAAAAttttttttrrrriiiibbbb
  32.      reference page for details on exactly what state these calls preserve.
  33.  
  34. EEEEXXXXAAAAMMMMPPPPLLLLEEEE
  35.      The following commands render a textured NURBS curve with normals;
  36.      texture coordinates and normals are also specified as NURBS curves:
  37.  
  38.  
  39.           gluBeginCurve(nobj);
  40.              gluNurbsCurve(nobj, ..., GL_MAP1_TEXTURE_COORD_2);
  41.              gluNurbsCurve(nobj, ..., GL_MAP1_NORMAL);
  42.              gluNurbsCurve(nobj, ..., GL_MAP1_VERTEX_4);
  43.           gluEndCurve(nobj);
  44.  
  45.  
  46. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  47.      gggglllluuuuBBBBeeeeggggiiiinnnnSSSSuuuurrrrffffaaaacccceeee, gggglllluuuuBBBBeeeeggggiiiinnnnTTTTrrrriiiimmmm, gggglllluuuuNNNNeeeewwwwNNNNuuuurrrrbbbbssssRRRReeeennnnddddeeeerrrreeeerrrr, gggglllluuuuNNNNuuuurrrrbbbbssssCCCCuuuurrrrvvvveeee,
  48.      ggggllllPPPPooooppppAAAAttttttttrrrriiiibbbb, ggggllllPPPPuuuusssshhhhAAAAttttttttrrrriiiibbbb
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.